package com.dropdb.demo.service;

import com.dropdb.demo.bean.Permission;
import com.dropdb.demo.bean.Role;
import com.dropdb.demo.bean.bo.AdminRoleListBO;
import com.dropdb.demo.bean.bo.AdminRolePermissionsBO;
import com.dropdb.demo.bean.vo.AdminRoleListData;
import com.dropdb.demo.bean.vo.AdminRoleOptionsData;
import com.dropdb.demo.bean.vo.PermissionData;

import java.util.List;

public interface RoleService {
    AdminRoleListData list(AdminRoleListBO adminRoleListBo); //Integer page, Integer limit, String sort, String order

    Role create(String name, String desc);

    int update(Role role);

    int delete(Role role);

    List<AdminRoleOptionsData> options();

    PermissionData permissions(Integer roleId);

    int permissions(AdminRolePermissionsBO bo);
}
